package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.VoChatMsg;
import com.example.pojo.Chat;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 聊天信息表(Chat)表数据库访问层
 *
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/01/17
 * @time: 23:08
 */
 @Repository
public interface ChatMapper extends BaseMapper<Chat>{

    /**
     * 获取聊天列表
     * @param userId
     * @return
     */
    List<VoChatMsg> selectChatMsgList(Long userId);
}

